﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MenuEdit.aspx.cs" Inherits="HQWeb.SysManage.MenuManage.MenuEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>菜单信息维护</title>
    <link href="../../Styles/Site.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript">
        function sendRequest() {
            var shu = document.getElementById("txt_squence").value;
            if (isNaN(shu)) {
                alert("顺序数必须为数字");
                document.getElementById("txt_squence").value = "";
                document.getElementById("txt_squence").focus();
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table align="center" width="98%">
            <tr>
                <td colspan="2" class="title">
                    <asp:Label runat="server" ID="labTitle"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 20%">
                    父菜单：
                </td>
                <td>
                    <asp:DropDownList ID="parent_id" runat="server" Width="200px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="center">
                    菜单名称：
                </td>
                <td class="content">
                    <asp:TextBox ID="txt_name" runat="server" MaxLength="50" ToolTip="菜单名称不超过50个字符" Width="200px"></asp:TextBox><span
                        style="color: Red">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                            runat="server" ErrorMessage="菜单名称不能为空！" ControlToValidate="txt_name"></asp:RequiredFieldValidator>
                </td>
            </tr>
               <tr>
                <td align="center">
                    菜单顺序编号：
                </td>
                <td>
                    <asp:TextBox ID="txt_squence" runat="server"  onfocusout="sendRequest()" MaxLength="50" Width="200px"></asp:TextBox>
                    <span
                        style="color: Red">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                            runat="server" ErrorMessage="菜单顺序编号不能为空！" ControlToValidate="txt_squence"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="center">
                    菜单URL：
                </td>
                <td>
                    <asp:TextBox ID="txt_url" runat="server" MaxLength="200" Width="356px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="btnSend" runat="server" Text="提 交" OnClick="btnSend_Click" />&nbsp;
                    <input id="btnCalcel" value="返 回" type="button" onclick="location='MenuList.aspx?pid=' + document.getElementById('txtParentIdHid').value" />
                    <asp:TextBox ID="txtIdHid" runat="server" Style="visibility: hidden"></asp:TextBox><!--传递唯一标识-->
                    <asp:TextBox ID="txtParentIdHid" runat="server" Style="visibility: hidden"></asp:TextBox><!--传递上级记录标识-->
                    <asp:TextBox ID="txtSign" runat="server" Style="visibility: hidden"></asp:TextBox><!--传递操作-->
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
